#ifndef _OUTPUT_
#define _OUTPUT_

#include <SDL.h>
#include <SDL_ttf.h>
#include <string.h>
#include <vector>
#include "Text.h"

using namespace std;

class Container;

class Output {
    private:
        Container* parent;
        
        string name;
        int x;
        int y;
        int w;
        int h;
        
        SDL_Surface* SDL_render;
        SDL_Surface* texteSurface;
        
        std::vector<std::string> l_text;
        
    public:
        TTF_Font* police;
        SDL_Color couleur;
        
        Output(Container* parent, string name, int x, int y, int w, int h, int text_h);
        ~Output();
        
        SDL_Surface* updateRender();
        
        void print(std::string line);
        
        string getName();
        int getx();
        int gety();
};

#endif